//
//  NSString+time.h
//  RM_IM
//
//  Created by zhangzhenyun on 2018/7/10.
//  Copyright © 2018年 user1. All rights reserved.
//

#import <Foundation/Foundation.h>
/**从什么时候开始*/
typedef enum {
    SinceFromTypeNow = 0,
    SinceFromType1970
} SinceFromType;

@interface NSString (time)
+(NSString *)transTimeintervalToStr:(NSTimeInterval)timeInterval sinceFrom:(SinceFromType)when;
/**字符串 2018-07-09 11:11:11 转化为时间的具体描述: 今天,月日,和年月日*/
+ (NSString *)timeFormatDescriptionFromtime:(NSString *)time;

@end
